package com.ie.service.before;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ie.common.http.ResponseResult;
import com.ie.entity.admin.CartEntity;

import java.util.List;
import java.util.Map;

public interface CartService extends IService<CartEntity> {

    ResponseResult<Map<String, Object>> addCart(CartEntity cartEntity);



// 根据传入的CartEntity对象，更新购物车信息，并返回ResponseResult<Map<String, Object>>类型的结果
    ResponseResult<Map<String, Object>> bupDateCart(CartEntity cartEntity);

    ResponseResult<Map<String, Object>> clearCart(CartEntity cartEntity);

    ResponseResult<Map<String, Object>> getCartList(Integer userId);

    ResponseResult<Map<String, Object>> getCartListByBusertableId(String busertableId);

    ResponseResult<Map<String, Object>> removeCart(Integer id);
}